package com.CST.entity.cb;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import java.util.List;

/**
 * <p>菜单表</p>
 *
 * @author: y
 * @create: 2021-09-27 14:41
 **/
@ApiModel(value ="菜单表")
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("BD_SysMenu")
public class BdSysMenu implements Serializable {
    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    @ApiModelProperty(value = "父id")
    @TableField("PARENT_ID")
    private String parentId;

    @ApiModelProperty(value = "菜单名称")
    @TableField("MENU_NAME")
    private String menuName;

    @ApiModelProperty(value = "PATH")
    @TableField("PATH")
    private String path;



    @ApiModelProperty(value = "CHECKED")
    @TableField("CHECKED")
    private String checked;

    @ApiModelProperty(value = "创建时间",example = "2020-02-05 13:30:41")
    @TableField("CREATE_TIME")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss", iso = DateTimeFormat.ISO.DATE_TIME)
    private Date createTime;

    @TableField("DEL_FLAG")
    private String delFlag;

    @TableField(exist = false)
    private List<BdSysMenu> childNodes = new ArrayList<>();


}
